import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";

export default defineUniPages({
	pages: [
		{
			path: "pages/home/index",
			style: {
				navigationBarTitleText: "首页",
			},
		},
		{
			path: "pages/search/index",
			style: {
				navigationBarTitleText: "查词",
			},
		},
		{
			path: "pages/setting/index",
			style: {
				navigationBarTitleText: "设置",
			},
		},
		{
			path: "pages/detailPage/index",
			style: {
				navigationBarTitleText: "详情",
			},
		},
	],
	globalStyle: {
		backgroundColor: "@bgColor",
		backgroundColorBottom: "@bgColorBottom",
		backgroundColorTop: "@bgColorTop",
		backgroundTextStyle: "@bgTxtStyle",
		navigationBarBackgroundColor: "#000000",
		navigationBarTextStyle: "@navTxtStyle",
		navigationBarTitleText: "Uni Creator",
		navigationStyle: "custom",
	},
	subPackages: [],
	tabBar: {
		list: [
			{
				pagePath: "pages/home/index",
				text: "首页",
				// iconPath: "static/tabbar/home.png",
				// selectedIconPath: "static/tabbar/home-active.png",
			},
			{
				pagePath: "pages/search/index",
				text: "搜词",
				// iconPath: "static/tabbar/search.png",
				// selectedIconPath: "static/tabbar/search-active.png",
			},
			{
				pagePath: "pages/setting/index",
				text: "我的",
				// iconPath: "static/tabbar/search.png",
				// selectedIconPath: "static/tabbar/search-active.png",
			},
		],
	},
});
